package com.isoftstone.merchant.service.mdept;

import com.isoftstone.merchant.entity.mdept.MDept;
import com.isoftstone.merchant.entity.mdept.SysUserDept;

import java.util.List;


public interface ISysUserDeptService {
    int insert(SysUserDept record);

    int insertSelective(SysUserDept record);

    void updateUserDeptByUserIdAndDeptId(String userid,String deptid) throws Exception;

      List<SysUserDept> getUserDeptByUserId(String userId)throws Exception;

    void deleteUserDeptBydeptId(String deptid) throws Exception;

    List<String> getDeptIdByUserId(String userid)throws Exception;
        //根据userid删除关联关系
    void deleteUserDeptByUserId(String userid)throws Exception;

    List<SysUserDept> getDeptIdAndNameByUserId(String userid)throws Exception;
}
